<template>

  <div>
    <div style="height:470px;overflow:hidden;position: relative;">
      <div class="swiper-moto swiper-container-horizontal">
        <el-carousel height="470px">
          <el-carousel-item v-for="(item, index) in banners" :key="index">
            <el-image :src="item" style="height: 470px;width: 100%;" fit="cover"></el-image>
          </el-carousel-item>
        </el-carousel>
      </div>
      <div class="shop_banner_n" style="display: block;">
        <div class="shop_nav_c clearfix">
          <div class="list_nav">
            <ul>
              <li v-for="(item1, index1) in categorys" :key="index1">
                <div class="list_name">
                  <a class="list_nm" style="height:25.5px;line-height:25.5px">{{ item1.name }}<span
                      class="list_usepng list_icona"></span>
                  </a>
                  <div class="list_cont" style="display: none; top: -1px;">
                    <el-row>
                      <el-col :span="6" v-for="(item3, index3) in item1.children" :key="index3 + '_3'"
                        style="padding:10px;">
                        <a :href="'#/list/' + item3.id" class="category-child-item">
                          <el-row>
                            <el-col :span="12" style="text-align: right;padding-right: 20px;">
                              <img style="width:50px;height:50px" :src="'api' + item3.imageurl">
                            </el-col>
                            <el-col :span="12" style="height:50px;line-height: 50px; text-align: left;">
                              {{ item3.name }}
                            </el-col>
                          </el-row>
                        </a>
                      </el-col>

                    </el-row>

                    <!-- <div v-if="item1.imageurl" class="list_rt">
                      <a v-for="(item2,index2) in item1.imgList" :key="index2+'_2'">
                        <img class="classification_img" :src="item2">
                      </a>
                    </div> -->
                    <!-- <div v-for="(item3,index3) in item1.children" :key="index3+'_3'"   class="list_lt">
                      <div  class="list_lta">
                         <p><a>{{item3.name}}</a>
                        </p>  
                        <ul class="clearfix">
                          
                          <li  v-for="(item3,index3) in item1.children" :key="index3+'_3'">
                            <img style="width:30px;height:30px" :src="'api'+item3.imageurl">
                            <a :href="'#/list/'+item3.id">{{item3.name}}</a>
                          </li>
                        </ul>
                      </div>
                    </div> -->
                  </div>
                </div>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>

    <div class="quick-access-wrap ">

      <div class="quick-access-cont">
        <ul class="quick-access-ul">
          <li v-for="(item, index) in quickList" :key="index" class="quick-access-li box_shadow"
            style="width: 7%; bottom: 5px; top: 5px;">
            <a class="quick-access-link">
              <div class="center-wrap">
                <img v-for="(item2, index2) in item.imgList" :key="index2 + '_2'"
                  :class="'quick-access-img ' + (index2 === 0 ? 'cur-img' : 'hover-img')" :src="item2" :alt="item.name"
                  :style="index2 === 0 ? 'display: block;' : 'display: none;'">
                <span class="quick-access-txt">{{ item.name }}</span>
              </div>
            </a>
          </li>
        </ul>
      </div>
    </div>

    <div style="background-color: #f5f5f5;">

      <div v-for="(item1, index1) in productList" :key="index1" class="product-list-container nav_floor_item"
        style="padding-top:20px">
        <div class="product-top-wrap">
          <div class="product-level-name">
            <span class="level-name-left">{{ item1.name }}</span>
          </div>
          <div class="product-level-list">
            <div class="product-list-topright">
              <a v-for="(item2, index2) in item1.categorys" :key="index2 + '_2'" class="top-level-list"
                @click="changeItmes(item1, item2.productList)">
                <span>{{ item2.name }}</span>
              </a>
            </div>
            <div class="product-list-more">
            </div>
          </div>
        </div>
        <div class="product-main-wrap">
          <div class="banner-img-left">
            <div class="swiper-container swiper-container-horizontal">
              <div class="swiper-wrapper">
                <div class="swiper-slide swiper-slide-active" style="width: 230px;">
                  <a>
                    <img :src="item1.img" alt="">
                  </a>
                </div>
              </div>
            </div>
          </div>

          <div class="product-list-right">
            <ul class="product-list-ul">
              <li v-for="(item3, index3) in item1.productList" :key="index3 + '_3'" class="product-detail-card"
                :title="item3.productName" @click="productDetail(item3)">
                <div class="product-detail-pic">
                  <a class="details-pic">
                    <img :src="'api/' + item3.image" alt="">
                  </a>
                </div>
                <div class="product-des-box">
                  <a class="product-des-title">{{ item3.name }}</a>
                  <a class="product-des-subtitle">{{ item3.description }}</a>
                  <p class="product-card-price">
                    <a class="card-price">
                      <span class="price_box_sign">￥</span>
                      <span class="price_box_price" gcode="1030031">{{ item3.price }}</span>
                    </a>
                  </p>
                </div>
                <span v-if="item3.hot" class="product-card-icon" style="background-color: #FB6540">热卖</span>
              </li>

            </ul>
            <i class="clear_both"></i>
          </div>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
import api from '@/api/';
import VueRouter from 'vue-router';
export default {
  data() {
    return {
      //自己的数据
      categorys: [],
      productList: [],
      banners: [
        require('../../../public/img/55z0qbfn5ncca2idm74mt4kz703180401379.jpg'),
        require('../../../public/img/op1coxoykyrnd0rpscjbmx5if1emu3241289.jpg'),
        require('../../../public/img/2wvwmtu1v1h6jqd588fazv41jiysvn574078.jpg'),
        require('../../../public/img/7qjtap0lwy0zzeh3k5geydwj3g96bm204684.jpg'),
        require('../../../public/img/x80v3jc70vuhwzkdnl7kqf6hf80ehl197041.jpg')
      ],
      menus: [
        {
          name: 'Lenovo电脑',
          imgList: [require('../../../public/img/o6z5cx2100oeclgjl96tlrc9roe5ql022075.jpg'), require('../../../public/img/5fz9m53x6hu66ioyapy3jztzrsam2i890524.jpg')],
          subTypes: [
            {
              name: '游戏本', children: [
                { name: 'G5000' },
                { name: '拯救者 Y9000P' },
                { name: '拯救者 R9000P' },
                { name: '拯救者 Y9000K' },
                { name: '拯救者 Y7000P' },
                { name: '拯救者 R7000P' },
                { name: 'IP选件' }
              ]
            },
            {
              name: '轻薄本', children: [
                { name: '小新 Pro 16' },
                { name: '小新 Air 15' },
                { name: '小新 Air 14' },
                { name: '小新 Pro14 2023' },
                { name: '小新 Air 14 Plus' },
                { name: '小新16' }
              ]
            },
            {
              name: '便携本', children: [
                { name: 'YOGA Pro 14s' },
                { name: 'YOGA Book 9i' }
              ]
            },
            {
              name: '常规本', children: [
                { name: 'ideaPad 14/15' },
                { name: 'ideaPad 14s' }
              ]
            },
            {
              name: '分体台式机', children: [
                { name: '天逸510S  7.4L 机箱' },
                { name: '天逸510 Pro  14L 机箱' },
                { name: 'Mini主机' }
              ]
            },
            {
              name: '游戏台式机', children: [
                { name: '刃9000K' },
                { name: '刃7000K' },
                { name: '刃7000P' },
                { name: '异能者DIY台式机' },
                { name: 'GeekPro' }
              ]
            }
          ]
        },
        {
          name: 'TinkPad电脑',
          imgList: [require('../../../public/img/uqq270l3vaium6d0ldlf7nwqtd4x4b100701.jpg'), require('../../../public/img/16om5e6lq6m9i8z57yo0d3ttci50jb959207.jpg')],
          subTypes: [
            {
              name: '游戏本2', children: [
                { name: 'G5000' },
                { name: '拯救者 Y9000P' },
                { name: '拯救者 R9000P' },
                { name: '拯救者 Y9000K' },
                { name: '拯救者 Y7000P' },
                { name: '拯救者 R7000P' },
                { name: 'IP选件' }
              ]
            },
            {
              name: '轻薄本2', children: [
                { name: '小新 Pro 16' },
                { name: '小新 Air 15' },
                { name: '小新 Air 14' },
                { name: '小新 Pro14 2023' },
                { name: '小新 Air 14 Plus' },
                { name: '小新16' }
              ]
            },
            {
              name: '便携本2', children: [
                { name: 'YOGA Pro 14s' },
                { name: 'YOGA Book 9i' }
              ]
            },
            {
              name: '常规本2', children: [
                { name: 'ideaPad 14/15' },
                { name: 'ideaPad 14s' }
              ]
            },
            {
              name: '分体台式机2', children: [
                { name: '天逸510S  7.4L 机箱' },
                { name: '天逸510 Pro  14L 机箱' },
                { name: 'Mini主机' }
              ]
            },
            {
              name: '游戏台式机2', children: [
                { name: '刃9000K' },
                { name: '刃7000K' },
                { name: '刃7000P' },
                { name: '异能者DIY台式机' },
                { name: 'GeekPro' }
              ]
            }
          ]
        },
        {
          name: '平板电脑',
          imgList: [require('../../../public/img/5cqfqm5ed7jcnwn3y1w3fia9x65pro074187.jpg'), require('../../../public/img/c6n71amvc7br47b721dskxco6jzqno312988.jpg')],
          subTypes: [
            {
              name: '游戏本3', children: [
                { name: 'G5000' },
                { name: '拯救者 Y9000P' },
                { name: '拯救者 R9000P' },
                { name: '拯救者 Y9000K' },
                { name: '拯救者 Y7000P' },
                { name: '拯救者 R7000P' },
                { name: 'IP选件' }
              ]
            },
            {
              name: '轻薄本3', children: [
                { name: '小新 Pro 16' },
                { name: '小新 Air 15' },
                { name: '小新 Air 14' },
                { name: '小新 Pro14 2023' },
                { name: '小新 Air 14 Plus' },
                { name: '小新16' }
              ]
            },
            {
              name: '便携本3', children: [
                { name: 'YOGA Pro 14s' },
                { name: 'YOGA Book 9i' }
              ]
            },
            {
              name: '常规本3', children: [
                { name: 'ideaPad 14/15' },
                { name: 'ideaPad 14s' }
              ]
            },
            {
              name: '分体台式机3', children: [
                { name: '天逸510S  7.4L 机箱' },
                { name: '天逸510 Pro  14L 机箱' },
                { name: 'Mini主机' }
              ]
            },
            {
              name: '游戏台式机3', children: [
                { name: '刃9000K' },
                { name: '刃7000K' },
                { name: '刃7000P' },
                { name: '异能者DIY台式机' },
                { name: 'GeekPro' }
              ]
            }
          ]
        },
        {
          name: '手机/通信',
          imgList: [require('../../../public/img/ifyv0ettf5k04ip9pgiqx83zxhcczr924110.jpg'), require('../../../public/img/ml525pjivlmz43cxqsmmiym21le1x6154070.jpg')],
          subTypes: [
            {
              name: '游戏本4', children: [
                { name: 'G5000' },
                { name: '拯救者 Y9000P' },
                { name: '拯救者 R9000P' },
                { name: '拯救者 Y9000K' },
                { name: '拯救者 Y7000P' },
                { name: '拯救者 R7000P' },
                { name: 'IP选件' }
              ]
            },
            {
              name: '轻薄本4', children: [
                { name: '小新 Pro 16' },
                { name: '小新 Air 15' },
                { name: '小新 Air 14' },
                { name: '小新 Pro14 2023' },
                { name: '小新 Air 14 Plus' },
                { name: '小新16' }
              ]
            },
            {
              name: '便携本4', children: [
                { name: 'YOGA Pro 14s' },
                { name: 'YOGA Book 9i' }
              ]
            },
            {
              name: '常规本4', children: [
                { name: 'ideaPad 14/15' },
                { name: 'ideaPad 14s' }
              ]
            },
            {
              name: '分体台式机4', children: [
                { name: '天逸510S  7.4L 机箱' },
                { name: '天逸510 Pro  14L 机箱' },
                { name: 'Mini主机' }
              ]
            },
            {
              name: '游戏台式机4', children: [
                { name: '刃9000K' },
                { name: '刃7000K' },
                { name: '刃7000P' },
                { name: '异能者DIY台式机' },
                { name: 'GeekPro' }
              ]
            }
          ]
        },
        {
          name: '智能产品',
          imgList: [require('../../../public/img/xjkue8ic1vnzw3cg7csezs6jjfphdr780163.jpg'), require('../../../public/img/npj6355s4wrlhh1cbmhue9q70s2mug367246.jpg')],
          subTypes: [
            {
              name: '游戏本5', children: [
                { name: 'G5000' },
                { name: '拯救者 Y9000P' },
                { name: '拯救者 R9000P' },
                { name: '拯救者 Y9000K' },
                { name: '拯救者 Y7000P' },
                { name: '拯救者 R7000P' },
                { name: 'IP选件' }
              ]
            },
            {
              name: '轻薄本5', children: [
                { name: '小新 Pro 16' },
                { name: '小新 Air 15' },
                { name: '小新 Air 14' },
                { name: '小新 Pro14 2023' },
                { name: '小新 Air 14 Plus' },
                { name: '小新16' }
              ]
            },
            {
              name: '便携本5', children: [
                { name: 'YOGA Pro 14s' },
                { name: 'YOGA Book 9i' }
              ]
            },
            {
              name: '常规本5', children: [
                { name: 'ideaPad 14/15' },
                { name: 'ideaPad 14s' }
              ]
            },
            {
              name: '分体台式机5', children: [
                { name: '天逸510S  7.4L 机箱' },
                { name: '天逸510 Pro  14L 机箱' },
                { name: 'Mini主机' }
              ]
            },
            {
              name: '游戏台式机5', children: [
                { name: '刃9000K' },
                { name: '刃7000K' },
                { name: '刃7000P' },
                { name: '异能者DIY台式机' },
                { name: 'GeekPro' }
              ]
            }
          ]
        },
        {
          name: '配件/办公',
          imgList: [require('../../../public/img/st0ru5gi19axao5o8u1kpo4csgawjc854277.jpg'), require('../../../public/img/lzw5p3yh29bbstmlb32c6vib3iyflt377393.jpg')],
          subTypes: [
            {
              name: '游戏本6', children: [
                { name: 'G5000' },
                { name: '拯救者 Y9000P' },
                { name: '拯救者 R9000P' },
                { name: '拯救者 Y9000K' },
                { name: '拯救者 Y7000P' },
                { name: '拯救者 R7000P' },
                { name: 'IP选件' }
              ]
            },
            {
              name: '轻薄本6', children: [
                { name: '小新 Pro 16' },
                { name: '小新 Air 15' },
                { name: '小新 Air 14' },
                { name: '小新 Pro14 2023' },
                { name: '小新 Air 14 Plus' },
                { name: '小新16' }
              ]
            },
            {
              name: '便携本6', children: [
                { name: 'YOGA Pro 14s' },
                { name: 'YOGA Book 9i' }
              ]
            },
            {
              name: '常规本6', children: [
                { name: 'ideaPad 14/15' },
                { name: 'ideaPad 14s' }
              ]
            },
            {
              name: '分体台式机6', children: [
                { name: '天逸510S  7.4L 机箱' },
                { name: '天逸510 Pro  14L 机箱' },
                { name: 'Mini主机' }
              ]
            },
            {
              name: '游戏台式机6', children: [
                { name: '刃9000K' },
                { name: '刃7000K' },
                { name: '刃7000P' },
                { name: '异能者DIY台式机' },
                { name: 'GeekPro' }
              ]
            }
          ]
        },
        {
          name: '增值服务',
          imgList: [require('../../../public/img/2ckg1ir9ekrjjz9uwbt23k94u2qy9y707300.jpg'), require('../../../public/img/omlv7n13lzcoqfl6uvz4s54xakuzwa930684.jpg')],
          subTypes: [
            {
              name: '游戏本7', children: [
                { name: 'G5000' },
                { name: '拯救者 Y9000P' },
                { name: '拯救者 R9000P' },
                { name: '拯救者 Y9000K' },
                { name: '拯救者 Y7000P' },
                { name: '拯救者 R7000P' },
                { name: 'IP选件' }
              ]
            },
            {
              name: '轻薄本7', children: [
                { name: '小新 Pro 16' },
                { name: '小新 Air 15' },
                { name: '小新 Air 14' },
                { name: '小新 Pro14 2023' },
                { name: '小新 Air 14 Plus' },
                { name: '小新16' }
              ]
            },
            {
              name: '便携本7', children: [
                { name: 'YOGA Pro 14s' },
                { name: 'YOGA Book 9i' }
              ]
            },
            {
              name: '常规本7', children: [
                { name: 'ideaPad 14/15' },
                { name: 'ideaPad 14s' }
              ]
            },
            {
              name: '分体台式机7', children: [
                { name: '天逸510S  7.4L 机箱' },
                { name: '天逸510 Pro  14L 机箱' },
                { name: 'Mini主机' }
              ]
            },
            {
              name: '游戏台式机7', children: [
                { name: '刃9000K' },
                { name: '刃7000K' },
                { name: '刃7000P' },
                { name: '异能者DIY台式机' },
                { name: 'GeekPro' }
              ]
            }
          ]
        }
      ],
      quickList: [
        { name: '会员福利', imgList: [require('../../../public/img/lvsog34v1tuvu1h1jocoy01x4q6noa838140.png'), require('../../../public/img/mg88kk7f6mjxrzw5e2slv3hvgrrucn725301.png')] },
        { name: '驱动下载', imgList: [require('../../../public/img/na1rz1knwkvp5mnawklvv1ztvahpli759550.png'), require('../../../public/img/iqb2n44mq680744alpo58x6s8jrv1m594659.png')] },
        { name: '小新铺子', imgList: [require('../../../public/img/kvq4noq4ys47sdoetfoft4fhi5rt9d540959.png'), require('../../../public/img/68mxw30qwh03x2h6ognqvqspktke6p347692.png')] },
        { name: '拯救者联盟', imgList: [require('../../../public/img/mmjy24a0ie3sfwpuua7mnl8d4izwtp137086.png'), require('../../../public/img/7szfzfc1m2c6mjqrhvfl3zdyl0zyuc153830.png')] },
        { name: 'Think家族', imgList: [require('../../../public/img/wlhohq21grxphvr8yb69l15eo9xaq5169037.png'), require('../../../public/img/6c0zreef6prv59vq1s5dmiz7ke58s5243926.png')] },
        { name: '手机新品', imgList: [require('../../../public/img/6kzhnv6abf4zdts2dnkiysif5f64ay107938.png'), require('../../../public/img/1e9tba8qn6t689pyit0qg9f9wpe53e942495.png')] },
        { name: '刃天堂', imgList: [require('../../../public/img/p16aql9r6lumx0r4xkuir0qlifbed2935895.png'), require('../../../public/img/k65b8hv8dmcuu3cevigwanal9hfbsv952288.png')] },
        { name: '平板电脑', imgList: [require('../../../public/img/6yxlmi4soaz8o5lnj27d4j15pyxmea176789.png'), require('../../../public/img/yglmln5hq1jc4n7ae7o3fxs8xy073c902620.png')] },
        { name: '选件', imgList: [require('../../../public/img/by0vwixdlpbzefrexkb1jxd6nlvhuq355856.png'), require('../../../public/img/hy8te9iuz789qjoubc54gff03yzyoc740963.png')] },
        { name: '智能', imgList: [require('../../../public/img/vxyi4xq399qccgir3clb5acaftbvu4158701.png'), require('../../../public/img/pn0irn3j6p6echvy1tbrs3gwgb082a411698.png')] },
        { name: '服务', imgList: [require('../../../public/img/a1ml642oirmyeinnxhx8cxc1ybl11f464914.png'), require('../../../public/img/xcai06ei7jg4kk24utyhy96s3o9z4j872675.png')] },
        { name: '以旧换新', imgList: [require('../../../public/img/lf1rruxlj5tivjkqkajnbuaqj4ps0q183361.png'), require('../../../public/img/kz5but6aaiia6ifznwxxvh3m7tnml1921330.png')] },
        { name: '京彩消费券', imgList: [require('../../../public/img/a1zuwsf5fbjv3hbvz3upq5gkyel0ey628213.png'), require('../../../public/img/cj5k0g2888v8aypwkry85cdefoi0bs263102.png')] }
      ],
      recommendList: [] //推荐列表
    };
  },
  async mounted() {
    //查询类别数据
    const result = await api.get("api/goods/category");
    this.categorys = result.data;
    console.log(this.categorys);
    let num = 3 > this.categorys.length ? this.categorys.length : 3;
    console.log("-------num---------");
    console.log(num);
    for (let i = 0; i < 3; i++) {
      const cateitem = this.categorys[i]
      let item = {};
      item.name = cateitem.name;
      item.img = require('../../../public/img/171ivhytp2gjv19egwn5alreqmrtpd041967.jpg');
      //设置子分类显示
      item.categorys = [];
      let count = cateitem && 5 > cateitem.children.length ? cateitem.children.length : 5;
      console.log("-------categorys---------");
      console.log(cateitem);
      item.productList = [];
      for (let j = 0; j < count; j++) {
        //分类
        let cate = cateitem.children[j];

        let result = await api.get("api/goods/getproductbycategory/" + cate.id + "/" + 8);
        item.productList = result.data;
        cate.productList = item.productList;
        item.categorys.push(cate);
      }
      item.productList = item.categorys[0].productList;
      //查询
      this.productList.push(item);

    }
    console.log("-------this.productList---------");
    console.log(this.productList);
    //初始化 获取商品
    // this.recommendList = data.homeRecommendList;
    // this.recommendList.forEach(item1 => {
    //   item1.productList = [];
    //   item1.productIds.forEach(item2 => {
    //     data.products.forEach(item3 => {
    //       if (item2 === item3.id) {
    //         item1.productList.push(item3);
    //       }
    //     });
    //   });
    // });
  },
  methods: {
    changeItmes(item, list) {
      item.productList = list;
    },
    productDetail(item) {
      this.$router.push({
        path: '/productDetail/' + item.id,
      });
    },
    async logoutFun() {//退出登录
      this.$confirm("确定退出登录?", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      })
        .then(async () => {
          const result = await api.postForm("/api/user/loginout");
          sessionStorage.removeItem("Authorization")
          this.$notify({
            title: '提示',
            message: '退出成功',
            type: 'success'
            //duration: 0//为0则不会自动关闭
          });
          //清除用户信息缓存

          this.$router.push({ path: '/' });
        })
    }
  },
  components: { VueRouter }
};
</script>

<style scoped>
a {
  cursor: pointer;
}

.swiper-moto {
  overflow-x: hidden;
  max-width: 1920px;
  position: relative;
  margin: 0 auto;
}

.shop_banner_n {
  width: 230px;
  position: absolute;
  top: 33px;
  left: 50%;
  margin-left: -600px;
  z-index: 10;
}

.shop_nav_c .list_nav {
  width: 230px;
  border-left: 1px solid #e6e6e6;
  border-top: 1px solid #e6e6e6;
  position: relative;
  float: left;
}

.shop_nav_c .list_nav {
  z-index: 333;
}

ul,
li,
p {
  margin: 0;
  padding: 0;
}

ul,
li {
  list-style: none;
}

.shop_nav_c .list_nav li {
  list-style: none;
  z-index: 111;
}

.shop_nav_c .list_nav div {
  font-family: "微软雅黑";
}

.shop_nav_c .list_nav a {
  text-decoration: none;
  font-family: "微软雅黑";
  color: #494949;
  font-weight: 600;
}

.list_nm {
  font-size: 16px;
  font-weight: 600;
  position: relative;
  padding: 16px 15px 15px 30px;
  border-bottom: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
  font-weight: normal;
  display: block;
  line-height: 22px;
  height: 22px;
  box-sizing: content-box;
}

.list_icona {
  position: absolute;
  right: 19px;
  top: 24px;
  width: 6px;
  height: 9px;
  background-position: -84px -36px;
}

.list_usepng {
  display: inline-block;
  background-image: url(../../../public/img/1987c72b-c35c-4679-a712-6dcf0ca73c58.png);
  background-repeat: no-repeat;
}

.list_cont {
  width: 964px;
  background: #f7f7f7;
  position: absolute;
  left: 230px;
  border-right: 1px solid #e6e6e6;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  padding: 20px 22px 20px 22px;
  z-index: 333;
  min-height: 362px;
}

.shop_nav_c .list_nav div {
  font-family: "微软雅黑";
}

.list_rt {
  width: 252px;
  float: right;
}

.shop_nav_c .list_nav a {
  text-decoration: none;
  font-family: "微软雅黑";
  color: #494949;
  font-weight: 600;
}

.list_rt a {
  display: block;
}

.list_rt img {
  width: 252px;
  height: 160px;
  margin-bottom: 5px;
}

img {
  border: 0;
}

.list_lt {
  width: 630px;
  float: left;
  margin-bottom: 20px;
}

.list_lta p {
  color: #000;
  float: left;
  text-align: right;
  overflow: hidden;
  width: 96px;
  background: url(../../../public/img/5edf2b2c-f8a5-446a-b215-a9af1f7d1606.png) no-repeat right center;
  padding-right: 20px;
  line-height: 20px;
  box-sizing: border-box;
  font-weight: 600;
}

.list_lta p {
  font-size: 13px;
}

.list_lta ul {
  margin-left: 96px;
  width: 575px;
  padding-bottom: 5px;
}

.shop_nav_c .list_nav li {
  list-style: none;
  z-index: 111;
}

.list_lta ul li {
  font-size: 12px;
  float: left;
  line-height: 20px;
  height: 20px;
  zoom: 1;
}

.shop_nav_c .list_nav li {
  list-style: none;
  z-index: 111;
}

.list_lta ul li {
  font-size: 12px;
  float: left;
  line-height: 20px;
  height: 20px;
  zoom: 1;
}

.shop_nav_c .list_nav a {
  text-decoration: none;
  font-family: "微软雅黑";
  color: #494949;
  font-weight: 600;
}

.list_lta ul li a {
  border-left: 1px solid #e5e5e5;
  padding-left: 12px;
  padding-right: 12px;
  white-space: nowrap;
}

.shop_nav_c .list_nav a:hover {
  opacity: .8;
}

.list_name:hover .list_cont {
  display: block !important;
}

.list_lta a:hover {
  color: #e2231a;
}

.shop_nav_c {
  width: 230px;
  background: rgba(255, 255, 255, 0.85);
}

.clearfix:after {
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
  font-size: 0;
  line-height: 0;
  content: "";
}

.quick-access-wrap {
  width: 100%;
}

.quick-access-wrap .quick-access-cont {
  width: 1200px;
  margin: 0 auto;
}

.quick-access-wrap .quick-access-cont .quick-access-ul {
  height: 95px;
  font-size: 0;
  text-align: center;
}

.quick-access-wrap .quick-access-cont .quick-access-ul .quick-access-li {
  display: inline-block;
  height: 95px;
  line-height: 95px;
  text-align: center;
}

.quick-access-wrap .quick-access-cont .quick-access-ul .quick-access-li .quick-access-link {
  display: inline-block;
  vertical-align: middle;
}

a {
  text-decoration: none;
  color: #000;
}

.quick-access-wrap .quick-access-cont .quick-access-ul .quick-access-li .quick-access-link .quick-access-img {
  line-height: 95px;
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

.quick-access-wrap .quick-access-cont .quick-access-ul .quick-access-li .quick-access-link .quick-access-txt {
  display: block;
  height: 16px;
  line-height: 16px;
  font-size: 13px;
  color: #505050;
  margin-top: 2px;
  text-align: center;
}

.quick-access-wrap .quick-access-cont .quick-access-ul .quick-access-li:hover {
  transition: all .5s;
  box-shadow: 0 0 8px 0 rgba(200, 200, 200, 0.50);
  transform: translate3d(0, -2px, 0);
}

.quick-access-wrap .quick-access-cont .quick-access-ul .quick-access-li:hover .quick-access-link .quick-access-txt {
  color: #e1140a !important;
}

.quick-access-wrap .quick-access-cont .quick-access-ul .quick-access-li:hover .cur-img {
  display: none !important;
}

.quick-access-wrap .quick-access-cont .quick-access-ul .quick-access-li:hover .hover-img {
  display: block !important;
}

.product-list-container {
  width: 1200px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.product-list-container .product-top-wrap {
  overflow: hidden;
  margin-bottom: 16px;
}

.product-list-container .product-top-wrap .product-level-name {
  float: left;
  height: 35px;
}

.product-list-container .product-top-wrap .product-level-name .level-name-left {
  font-size: 26px;
  font-weight: bold;
  color: #1f1f1f;
  letter-spacing: -0.16px;
}

.product-list-container .product-top-wrap .product-level-list {
  float: right;
  height: 35px;
  line-height: 35px;
}

.product-list-container .product-top-wrap .product-level-list .product-list-topright {
  display: inline-block;
  line-height: 1;
  vertical-align: bottom;
}

.product-list-container .product-top-wrap .product-level-list .product-list-topright .top-level-list {
  margin-right: 16px;
}

.product-list-container .product-top-wrap .product-level-list .product-list-topright .top-level-list span {
  display: inline-block;
  font-size: 14px;
  color: #1f1f1f;
  letter-spacing: -0.09px;
  border-bottom: 1px solid transparent;
}

.product-list-container .product-top-wrap .product-level-list .product-list-more {
  display: inline-block;
  line-height: 17px;
  vertical-align: bottom;
}

.product-list-container .product-main-wrap .banner-img-left {
  width: 230px;
  height: 542px;
  float: left;
  background-color: #f5f5f5;
}

.swiper-container {
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}

.swiper-slide {
  flex-shrink: 0;
  height: 100%;
  position: relative;
}

.product-list-container .product-main-wrap .banner-img-left .swiper-container .swiper-wrapper .swiper-slide img {
  width: 230px;
  height: 542px;
}

.swiper-container-horizontal>.swiper-pagination {
  height: 20px;
  line-height: 17px;
  margin-bottom: 20px;
}

.product-list-container .swiper-container-horizontal>.swiper-pagination .swiper-pagination-bullet {
  width: 2px;
  height: 8px;
  background-color: #fff;
  vertical-align: middle;
  margin-right: 6px !important;
  opacity: 1;
}

.product-list-container .product-main-wrap .product-list-right {
  width: 958px;
  height: 542px;
  float: right;
}

.product-list-container .product-main-wrap .product-list-right .product-list-ul {
  width: 968px;
}

.product-list-container .product-main-wrap .product-list-right .product-detail-card {
  position: relative;
  float: left;
  width: 230px;
  height: 265px;
  margin-right: 12px;
  background-color: #fff;
  margin-bottom: 12px;
}

.product-list-container .product-main-wrap .product-list-right .product-detail-card .product-detail-pic {
  margin-bottom: 5px;
}

.product-list-container .product-main-wrap .product-list-right .product-detail-card .product-detail-pic .details-pic {
  display: block;
  height: 170px;
  line-height: 170px;
  text-align: center;
  vertical-align: middle;
}

.product-list-container .product-main-wrap .product-list-right .product-detail-card .product-detail-pic .details-pic img {
  width: 160px;
  height: 160px;
  vertical-align: middle;
}

.product-list-container .product-main-wrap .product-list-right .product-detail-card .product-des-box .product-des-title {
  display: block;
  height: 19px;
  line-height: 19px;
  font-size: 15px;
  color: #242424;
  letter-spacing: -0.1px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  padding: 0 15px;
}

.product-list-container .product-main-wrap .product-list-right .product-detail-card .product-des-box .product-des-subtitle {
  display: block;
  font-size: 12px;
  color: #858585;
  letter-spacing: -0.07px;
  text-align: center;
  height: 14px;
  line-height: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  padding: 0 10px;
}

p {
  margin: 0;
  padding: 0;
}

.product-list-container .product-main-wrap .product-list-right .product-detail-card .product-des-box .product-card-price .card-price {
  display: block;
  font-size: 16px;
  color: #e2231a;
  letter-spacing: -0.1px;
  text-align: center;
  font-weight: 400;
}

.product-list-container .product-main-wrap .product-list-right .product-card-icon {
  display: inline-block;
  position: absolute;
  top: 2px;
  right: 2px;
  width: 37px;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
  color: #fff;
  text-align: center;
  border-radius: 1px;
}

.product-list-container .product-top-wrap .product-level-list .product-list-topright .top-level-list span:hover {
  color: #e1140a;
  border-bottom: 1px solid #e1140a;
}

.product-list-container .product-top-wrap:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.product-list-container .product-main-wrap:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.product-list-container .product-main-wrap .product-list-right .product-detail-card .product-detail-pic:hover .details-pic img {
  opacity: .8;
  transition: all .1s;
}

.product-list-container .product-main-wrap .product-list-right .product-detail-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: box-shadow .3s linear;
}

.category-child-item img :hover {
  transform: scale(1.1);
  transition: all .3s linear;
}

.category-child-item :hover {
  color: #FF5722;
}
</style>
